package com.rockcent.mall.lib.domain;

import com.rockcent.common.domain.IDEntityMall;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;

/**
 * Created by oyhk on 16/7/27.
 */
@Entity
@Table(name = "mall_certify_info")
@DynamicInsert(value = true)
@DynamicUpdate(value = true)
public class MallCertifyInfo extends IDEntityMall {

    @Column(columnDefinition = "varchar(100) comment '公司名'")
    private String companyName;
    @Column(columnDefinition = "varchar(30) comment '组织机构代码'")
    private String organizationCode;
//    @Column(columnDefinition = "varchar(30) comment '营业执照号'")
//    private String businessLicense;
    @Column(columnDefinition = "varchar(300) comment '营业执照副本电子版'")
    private String businessLicenseElectronic;
//    @Column(columnDefinition = "varchar(180) comment '所在地区'")
//    private String locationArea;
    @Column(columnDefinition = "varchar(5000) comment '经营行业'")
    private String industry;
    @Column(columnDefinition = "varchar(30) comment '法人代表姓名'")
    private String nameOfCompanyLegal;
    @Column(columnDefinition = "varchar(30) comment '身份证号码'")
    private String idCardNumber;
    @Column(columnDefinition = "varchar(300) comment '法人身份证电子版'")
    private String idCardNumberElectronic;
//    @Column(columnDefinition = "varchar(30) comment '联系人'")
//    private String contactPerson;
//    @Column(columnDefinition = "varchar(30) comment '联系手机号'")
//    private String contactPhoneNum;
//    @Column(columnDefinition = "varchar(30) comment '联系邮箱'")
//    private String contactEmail;
    @Column(columnDefinition = "varchar(30) comment '银行开户名'")
    private String bankAccountName;
    @Column(columnDefinition = "varchar(30) comment '公司银行账号'")
    private String bankAccount;
    @Column(columnDefinition = "varchar(30) comment '开户银行支行名称'")
    private String bankName;
    @Column(columnDefinition = "varchar(30) comment '开户银行支行联行号'")
    private String bankSerialNum;
    @Column(columnDefinition = "varchar(300) comment '开户银行许可证电子版'")
    private String bankPermitElectronic;
    @Column(columnDefinition = "bigint comment '平台id'")
    private Long mallId;
    @Column(columnDefinition = "bigint comment '开户银行所在地id'")
    private Long locationId;
    @Column(columnDefinition = "bigint comment '公司所在地id'")
    private Long companyLocationId;



    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getOrganizationCode() {
        return organizationCode;
    }

    public void setOrganizationCode(String organizationCode) {
        this.organizationCode = organizationCode;
    }

//    public String getBusinessLicense() {
//        return businessLicense;
//    }
//
//    public void setBusinessLicense(String businessLicense) {
//        this.businessLicense = businessLicense;
//    }

    public String getIndustry() {
        return industry;
    }

    public void setIndustry(String industry) {
        this.industry = industry;
    }

    public String getNameOfCompanyLegal() {
        return nameOfCompanyLegal;
    }

    public void setNameOfCompanyLegal(String nameOfCompanyLegal) {
        this.nameOfCompanyLegal = nameOfCompanyLegal;
    }

    public String getIdCardNumber() {
        return idCardNumber;
    }

    public void setIdCardNumber(String idCardNumber) {
        this.idCardNumber = idCardNumber;
    }

//    public String getContactPerson() {
//        return contactPerson;
//    }
//
//    public void setContactPerson(String contactPerson) {
//        this.contactPerson = contactPerson;
//    }
//
//    public String getContactPhoneNum() {
//        return contactPhoneNum;
//    }
//
//    public void setContactPhoneNum(String contactPhoneNum) {
//        this.contactPhoneNum = contactPhoneNum;
//    }
//
//    public String getContactEmail() {
//        return contactEmail;
//    }
//
//    public void setContactEmail(String contactEmail) {
//        this.contactEmail = contactEmail;
//    }

    public String getBankAccountName() {
        return bankAccountName;
    }

    public void setBankAccountName(String bankAccountName) {
        this.bankAccountName = bankAccountName;
    }

    public String getBankAccount() {
        return bankAccount;
    }

    public void setBankAccount(String bankAccount) {
        this.bankAccount = bankAccount;
    }

    public String getBankName() {
        return bankName;
    }

    public void setBankName(String bankName) {
        this.bankName = bankName;
    }

    public String getBankSerialNum() {
        return bankSerialNum;
    }

    public void setBankSerialNum(String bankSerialNum) {
        this.bankSerialNum = bankSerialNum;
    }

    public Long getMallId() {
        return mallId;
    }

    public void setMallId(Long mallId) {
        this.mallId = mallId;
    }

    public String getBusinessLicenseElectronic() {
        return businessLicenseElectronic;
    }

    public void setBusinessLicenseElectronic(String businessLicenseElectronic) {
        this.businessLicenseElectronic = businessLicenseElectronic;
    }

//    public String getLocationArea() {
//        return locationArea;
//    }

//    public void setLocationArea(String locationArea) {
//        this.locationArea = locationArea;
//    }

    public String getIdCardNumberElectronic() {
        return idCardNumberElectronic;
    }

    public void setIdCardNumberElectronic(String idCardNumberElectronic) {
        this.idCardNumberElectronic = idCardNumberElectronic;
    }

    public String getBankPermitElectronic() {
        return bankPermitElectronic;
    }

    public void setBankPermitElectronic(String bankPermitElectronic) {
        this.bankPermitElectronic = bankPermitElectronic;
    }

    public Long getLocationId() {
        return locationId;
    }

    public void setLocationId(Long locationId) {
        this.locationId = locationId;
    }

    public Long getCompanyLocationId() {
        return companyLocationId;
    }

    public void setCompanyLocationId(Long companyLocationId) {
        this.companyLocationId = companyLocationId;
    }

    @Override
    public String toString() {
        return "MallCertifyInfo{" +
                "companyName='" + companyName + '\'' +
                ", organizationCode='" + organizationCode + '\'' +
                ", id=" + id +
                ", dateCreated=" + dateCreated +
                ", businessLicenseElectronic='" + businessLicenseElectronic + '\'' +
                ", lastUpdated=" + lastUpdated +
                ", industry='" + industry + '\'' +
                ", isDelete=" + isDelete +
                ", nameOfCompanyLegal='" + nameOfCompanyLegal + '\'' +
                ", version=" + version +
                ", idCardNumber='" + idCardNumber + '\'' +
                ", idCardNumberElectronic='" + idCardNumberElectronic + '\'' +
                ", bankAccountName='" + bankAccountName + '\'' +
                ", bankAccount='" + bankAccount + '\'' +
                ", bankName='" + bankName + '\'' +
                ", bankSerialNum='" + bankSerialNum + '\'' +
                ", bankPermitElectronic='" + bankPermitElectronic + '\'' +
                ", mallId=" + mallId +
                ", locationId=" + locationId +
                ", companyLocationId=" + companyLocationId +
                '}';
    }
}
